package com.unicom.mec.device.task;

import com.unicom.mec.device.service.EdgeNodeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

@Component
public class EdgeNodeTask {

    @Autowired
    private EdgeNodeService edgeNodeService;

    @Scheduled(cron = "0 0/5 * * * ?")
    public void findEdgeNodes() {
        edgeNodeService.findEdgeNodesForTask();
    }
}
